package com.ambimmort.shj.action.system.property;

import com.ambimmort.shj.service.system.property.SystemPropertyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by Josh on 2015/7/31.
 */
@Controller("/action/system/getproperty.do")
public class GetProperty {
    @Autowired
    private SystemPropertyService systemPropertyService;

    /**
     *
     * @param request
     * @param response
     * @param property
     * @return
     */
    @RequestMapping("/action/system/getproperty.do")
    @ResponseBody
    public String getProperty_system(HttpServletRequest request,HttpServletResponse response, @RequestParam("property") String property){
        
            return systemPropertyService.getProperty(property);
    }
}
